/**
 * This file is part of Lineage II Client Data Parser.
 * 
 * Lineage II Client Data Parser is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * Lineage II Client Data Parser is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with Lineage II Client Data Parser.  If not, see <http://www.gnu.org/licenses/>.
 */
package net.l2emuproject.entity;

import net.l2emuproject.entity.base.SimpleEntity;

/**
 * @author Savormix
 *
 */
public final class Credit extends SimpleEntity
{
	private final String	texture;
	private final int		time;
	private final int		align;

	/**
	 * Creates an entity that represents a credit screen word.
	 * @param id ID in file
	 * @param htm The HTM file shown
	 * @param texture Background shown
	 * @param time How long to show
	 * @param align Alignment?
	 */
	public Credit(int id, String htm, String texture, int time, int align)
	{
		super(id, htm);
		this.texture = texture;
		this.time = time;
		this.align = align;
	}

	/**
	 * @return the HTM file
	 */
	public final String getFile()
	{
		return toString();
	}

	/**
	 * @return the texture
	 */
	public final String getTexture()
	{
		return texture;
	}

	/**
	 * @return the time
	 */
	public final int getTime()
	{
		return time;
	}

	/**
	 * @return the alignment
	 */
	public final int getAlign()
	{
		return align;
	}
}
